<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h1>1~10循环</h1>
		<script>
			for(var i = 1; i <= 10; i++){
				document.write(i + "<br/>");
			}
		</script>
		<h1>跳过数字5</h1>
		<script>
			for(var i = 1; i <= 10; i++){
				if(i == 5){
					continue;
				}
				document.write(i + "<br/>");
			}
		</script>
		<h1>遇到数字5结束</h1>
		<script>
			for(var i = 1; i <= 10; i++){
				if(i == 5){
					break;
				}
				document.write(i + "<br/>");
			}
		</script>
	</body>
</html>
